package team.seekers.catering.community.entity.dto.add;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class PostAddDTO {
    @NotBlank(message = "帖子名称不能为空")
    @Size(max = 20, message = "帖子名称长度不能超过20")
    private String name;

    private String userId;

    private List<String> picture;

    @NotBlank(message = "帖子内容不能为空")
    private String content;
}
